package com.tree.backend.controller;

import com.tree.backend.common.Result;
import com.tree.backend.entity.vo.InnovationCostData;
import com.tree.backend.service.IProductionEfficiencyService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 生产效能记录表，记录各党组织对应的生产单元效能数据 前端控制器
 * </p>
 *
 * @author tree
 * @since 2025-10-15
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/innovation")
public class ProductionEfficiencyController {
    private final IProductionEfficiencyService productionEfficiencyService;
@GetMapping("/cost-control")
    public Result<List<InnovationCostData>> costControl() {
        return Result.success(productionEfficiencyService.costControl());
    }
}
